//import com.sun.org.apache.xpath.internal.objects.XString;

import java.util.Scanner;

/**
 文档注释：
 作用HelloWorld类，初始Java
 */
public class HelloWorld {
    public static void main(String[] args) {
        //System.out.println("HelloWorld");//单行注释
        /*System.out.println(10);
        for (int i = 0; i < 10; i++) {
            System.out.println(i + 1);
        }*/ //多行注释
        //求1~10的相加的值
        int sum = 0;//累加的和
        for (int i = 1; i <= 10; i++) {
            sum += i;
        }
        System.out.println(sum);

        //打印一个*构成矩形，失败了
        for (int i = 0; i < 4; i++) {
            System.out.print('*');
            for (int j = 0; j < 4; j++) {
                System.out.print('*');
            }
        }

        //简易计算器
        Scanner scanner_one = new Scanner(System.in);
        System.out.println("请输入操作数1：");
        int one = scanner_one.nextInt();//输入
        Scanner scanner_two = new Scanner(System.in);
        System.out.println("请输入操作数2：");
        int two = scanner_two.nextInt();//输入

    }
}


